﻿<Window x:Class="KeyboardImageViewer.Settings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:selfns="clr-namespace:KeyboardImageViewer"
    Title="Settings" Height="320" Width="365" ResizeMode="CanResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" Closing="Window_Closing" MinWidth="300" MinHeight="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <TabControl Grid.Row="0" Name="mainTabControl">
            <TabItem Header="General" Name="generalTab">
                <Grid>
                    <CheckBox Height="16" Margin="17,12,0,0" Name="automaticUpdatesBox" VerticalAlignment="Top" HorizontalAlignment="Left" Width="209">Automatically download updates</CheckBox>
                    <CheckBox Margin="17,38,0,0" Name="trackDuplicatesBox" Height="16" VerticalAlignment="Top" Checked="trackDuplicatesBox_Checked" Unchecked="trackDuplicatesBox_Unchecked" HorizontalAlignment="Left" Width="116">Track duplicates</CheckBox>
                    <CheckBox Margin="41,60,0,0" Name="trackImageDuplicatesBox" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="222">Use image-based detection (slower)</CheckBox>
                    <Label Height="28" HorizontalAlignment="Left" Margin="13,80,0,0" Name="label2" VerticalAlignment="Top" Width="120">Fullscreen:</Label>
                    <StackPanel Orientation="Vertical"  Margin="26,106,0,0" HorizontalAlignment="Left" Width="184" Height="57" VerticalAlignment="Top">
                        <RadioButton Height="16" HorizontalAlignment="Left" Name="fullscreenRemember" VerticalAlignment="Top" Width="164" GroupName="fullscreen">Remember from last time</RadioButton>
                        <RadioButton Height="16" HorizontalAlignment="Left" Name="fullscreenFullscreen" VerticalAlignment="Top" Width="147" GroupName="fullscreen">Always start fullscreen</RadioButton>
                        <RadioButton Height="16" HorizontalAlignment="Left" Name="fullscreenWindowed" VerticalAlignment="Top" Width="147" GroupName="fullscreen">Always start windowed</RadioButton>
                    </StackPanel>
                    <CheckBox Margin="17,169.04,0,0" Name="overlayInfobarBox" HorizontalAlignment="Left" Width="193" Height="16" VerticalAlignment="Top">Overlay infobar on image</CheckBox>
                </Grid>
            </TabItem>
            <TabItem Header="Library Folders" Name="libraryTab">
                <Grid>
                    <selfns:MultiFolderPickerWithRelocation Margin="6" x:Name="multiFolderPicker" />
                </Grid>
            </TabItem>
        </TabControl>



        <Button Grid.Row="1" Height="23" Margin="0,0,111,9" Name="okButton" VerticalAlignment="Bottom" IsDefault="True" Click="okButton_Click" HorizontalAlignment="Right" Width="76">OK</Button>
        <Button Grid.Row="2" Height="23" HorizontalAlignment="Right" Margin="0,0,16,9" Name="cancelButton" VerticalAlignment="Bottom" Width="75" IsCancel="True">Cancel</Button>
    </Grid>
</Window>
